package com.easyn.CamLinePro;

import java.lang.Thread.UncaughtExceptionHandler;

import android.app.Application;
import android.content.Context;


public class WashCarApplication extends Application
{
	private static WashCarApplication instance;
	/**
	 * ����id
	 */
	public static long downId = -1;
	/**
	 * �����ļ����
	 */
	public static String apkName = "";
	
	public static Context mContext = null;

	/** App�쳣���������� **/
	private UncaughtExceptionHandler uncaughtExceptionHandler;

	@Override
	public void onCreate()
	{
		super.onCreate();
		Thread.setDefaultUncaughtExceptionHandler(getUncaughtExceptionHandler());
		instance = this;		
	}	

	private UncaughtExceptionHandler getUncaughtExceptionHandler()
	{
		if (uncaughtExceptionHandler == null)
		{
			uncaughtExceptionHandler = AppException.getInstance(this);
		}
		return uncaughtExceptionHandler;
	}

	public static WashCarApplication getInstance()
	{
		return instance;
	}
}
